package com.timecookfish.mybatisplusdemo.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserBizServiceImpl {

    @Transactional
    public void exceptionMethod() {
        throw new NullPointerException("UserBizServiceImpl exception");
    }


    @Transactional(propagation = Propagation.MANDATORY)
    public void txPropagationMandatory() {

    }


}
